package com.base.vistter.iframe.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_notice")
public class SysNotice extends BaseEntity {

    private Integer type;

    private String title;

    private String digest;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="UTC")
    private Date deadline;

    private String acceptor;

    private Integer priority;

    private String content;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="UTC")
    private Date revocationDate;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String creatorName;

    @TableField(exist = false)
    private Integer isRead;

    @TableField(exist = false)
    private Long viewCount;

}
